home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.lyn < prev    next >
Makefile  |  1996-05-14  |  5KB  |  145 lines

  1. # $Id: makefile.lyn,v 1.1 1996/05/14 19:17:54 hubert Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36. #
  37.  
  38.  
  39. #
  40. #     Make file for the Pine mail system for BSD 4.3
  41. #
  42. #
  43. #   Most commonly fiddled flags for compiler.
  44. #   Uncomment the setttings desired here
  45. #
  46. RM=          rm -f
  47. LN=          ln -s
  48. MAKE=        make
  49. OPTIMIZE=    # -O
  50. PROFILE=     # -pg
  51. DEBUG=       -g -DDEBUG
  52.  
  53. IMAPDIR=     ../c-client
  54. PICODIR=     ../pico
  55.  
  56. STDLIBES=    -lbsd
  57. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  58. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  59.  
  60. # BSD gets defined in param.h so don't redefine here.
  61. STDCFLAGS=   -Dconst= -DSYSTYPE=\"BSD\"
  62. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  63.  
  64. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  65.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  66.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  67.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  68.     ttyout.o os.o
  69.  
  70. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  71.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  72.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  73.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  74.     ttyout.c os.c
  75.  
  76. pine:  $(obj) $(LOCLIBES)
  77.     echo "char datestamp[]="\"`date`\"";" > date.c
  78.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  79.     $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  80.  
  81. # this is not part of pine
  82. pine-use:    pine-use.c
  83.     $(CC) -o pine-use pine-use.c
  84.  
  85. clean:
  86.     $(RM) *.o os.h os.c helptext.c helptext.h
  87.     cd osdep; make clean; cd ..
  88.  
  89.  
  90. HEADERS= headers.h pine.h os.h helptext.h context.h \
  91.       $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
  92.  
  93. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  94. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  95. args.o:        args.c      $(HEADERS)
  96. context.o:    context.c   $(HEADERS) $(IMAPDIR)/misc.h
  97. filter.o:    filter.c    $(HEADERS) $(PICODIR)/pico.h
  98. folder.o:    folder.c    $(HEADERS)
  99. help.o:        help.c      $(HEADERS)
  100. helptext.o:    helptext.c
  101. imap.o:            imap.c      $(HEADERS)
  102. init.o:        init.c      $(HEADERS)
  103. mailcap.o:    mailcap.c   $(HEADERS)
  104. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  105. mailindx.o:    mailindx.c  $(HEADERS)
  106. mailpart.o:    mailpart.c  $(HEADERS)
  107. mailview.o:    mailview.c  $(HEADERS)
  108. newmail.o:    newmail.c   $(HEADERS)
  109. os.o:        os.c         $(HEADERS)
  110. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  111. pine.o:        pine.c      $(HEADERS)
  112. reply.o:    reply.c     $(HEADERS)
  113. screen.o:    screen.c    $(HEADERS)
  114. send.o:            send.c      $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
  115. signals.o:    signals.c   $(HEADERS)
  116. status.o:    status.c    $(HEADERS)
  117. strings.o:    strings.c   $(HEADERS)
  118. ttyin.o:    ttyin.c     $(HEADERS)
  119. ttyout.o:    ttyout.c    $(HEADERS)
  120.  
  121. os.h:    osdep/os-lyn.h
  122.     $(RM) os.h
  123.     $(LN) osdep/os-lyn.h os.h
  124.  
  125. helptext.c:    pine.hlp
  126.         ./cmplhelp.sh  < pine.hlp > helptext.c
  127.  
  128. helptext.h:    pine.hlp
  129.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  130.  
  131. os.c:    osdep/os-lyn.c
  132.     $(RM) os.c
  133.     $(LN) osdep/os-lyn.c os.c
  134.  
  135. osdep/os-lyn.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  136.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  137.         osdep/diskquot osdep/domnames osdep/err_desc \
  138.         osdep/expnfldr osdep/fgetpos.non osdep/filesize osdep/fltrname \
  139.         osdep/fnexpand osdep/header osdep/hostname \
  140.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  141.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  142.         osdep/rename osdep/tempfile osdep/tempnam osdep/writ_dir \
  143.         osdep/sendmail osdep/execview osdep/os-lyn.ic
  144.     cd osdep; $(MAKE) includer os-lyn.c; cd ..
  145.